package com.seari.bean;

import java.util.Date;

public class User {

	private int uid;
	private String userName;
	private String password;
	
	
	//创建时间,由数据库自动生成
	private Date createTime;
	
	/*
	 * 账号状态
	 * 0:冻结
	 * 1:启用
	 * 2:游客
	 * 3:裁判
	 * */
	private int status;
	
	//是否为管理员
	private boolean isAdmin;
	
	//账号过期时间,默认为空
	private Date expireTime;
	
	//无COOKIE时为空
	private String token;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public boolean isAdmin() {
		return isAdmin;
	}

	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public int getUid()
	{
		return uid;
	}

	public void setUid(int uid)
	{
		this.uid = uid;
	}
}
